from utils.client import APIClient
from utils.yaml_config import get_yaml

data = get_yaml('sms_alarm.yaml')

class Api_SMS_Alarm:


    def __init__(self,client:APIClient):
        self.client = client

    def sms_alarm_list(self):
        sms_alarm_data = data['list']['request']
        return self.client.request(sms_alarm_data['method'],sms_alarm_data['path'],json=sms_alarm_data['json'])
    
    def sms_alarm_set(self):
        sms_alarm_data = data['set']['request']
        return self.client.request(sms_alarm_data['method'],sms_alarm_data['path'],json=sms_alarm_data['json'])
    
    def sms_alarm_get(self):
        sms_alarm_data = data['get']['request']
        return self.client.request(sms_alarm_data['method'],sms_alarm_data['path'])